package com.example.headfirstprojectdemo.kungFuStrategyPattern;

import com.example.headfirstprojectdemo.kungFuStrategyPattern.Behavior.AxeBehavior;
import com.example.headfirstprojectdemo.kungFuStrategyPattern.Behavior.KnifeBehavior;
import com.example.headfirstprojectdemo.kungFuStrategyPattern.figure.King;
import com.example.headfirstprojectdemo.kungFuStrategyPattern.figure.Queen;

/**
 * @author usegoods@usegoods.com
 * @createTime 2020/12/1 15:38
 * @description
 */
public class StartGame {
    public static void main(String[] args) {
        King king = new King();
        king.setWeaponBehavior(new KnifeBehavior());
        king.fight();

        Queen queen = new Queen();
        queen.setWeaponBehavior(new AxeBehavior());
        queen.fight();


    }
}
